<?php
/*
	f confi.inc.	a corrie.	v 0.5
	config file for project
*/
define('CHARSET', 'utf-8');
define('TIMEZONE', "Asia/Shanghai");
define('I', 'i/');
define('D', 'd/');
define('M', 'm/');
define('IDIR', ROOT.I);
define('MDIR', ROOT.M);
define('DDIR', ROOT.D);

/* database config */
$db_server = "localhost";  //服务器地址
$db_user = "root";         //数据库用户名
$db_pass = "321";          //数据库密码
$db_name = "test";      //数据库名称
$db_char = "utf8";         //编码设置
$tablepre = 'n_';

/* commen config */
$classdir = IDIR."./class/";
$funcdir = IDIR."./func/";
$libdir = IDIR."./lib/";
$smartydir = IDIR."./smarty/";
$incdir = IDIR."./inc/";
$customdir = IDIR."./custom/";
$confdir = IDIR."./conf/";
$moddir = MDIR."./module/";
$ctrldir = MDIR."./controller/";
$elementdir = IDIR."element/";
$cachedir = DDIR."./cache/";
$smartydatadir = DDIR."./cache/smarty/";
$tempdir = MDIR."./template/";

/* site config */
$host = "http://localhost/frame/midp/";
$jqurl = $host.I."jquery/";
$jsurl = $host.I."js/";
$eturl = $host.I."editor/";
$imgurl = $host.D."image/";
$cssurl = $host.D."style/";

$links['membercenter'] = "<a href='{$host}index.php?module=membercenter'>去会员中心</a>";
$links['home'] = "<a href='{$host}index.php'>转到首页</a>";
$links['back'] = "<a href='javascript:history.back()'>返回上一页</a>";
//$links['refer'] = "<a href='".isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'javascript:history.back()'."'>返回前页</a>";

$cookiepre = "";
$cookiedomain = "";
$cookiepath = "";

//include($confdir."define.conf.php");
//include($confdir."db.conf.php");
//include($confdir."site.conf.php");
?>